﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RecipesRuleManageInfo.aspx.cs" Inherits="Catering.Catering_Page.system.RecipesRuleManageInfo" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>周食谱重复率标准设置</title>
    <link href="../../Style/center.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <style type="text/css">
        div.tp_list{width:764px; border:1px solid #C2DEF6; padding:0px 10px; margin:0px auto; height:308px; font-size:12px; overflow:auto;}
        div.tp_ui{width:724px; height:auto; clear:both; border-bottom:1px solid #C2DEF6; padding:0px 0px 10px; margin:10px 0px;}
        div.tp_ui span.tp_t{margin:0px; padding:2px 10px; height:20px; line-height:20px; display:block; clear:both; color:#044D93; font-weight:bold; font-size:13px; }
        div.tp_ui dl.dps_ui{clear:both; list-style:none; margin:0px; padding:0px 10px; width:724px; display:block;}
        div.tp_ui dl.dps_ui dd{margin:4px 30px 4px 0px; padding:0px; list-style:none; float:left; width:auto; white-space:nowrap; }
        div.tp_ui dl.dps_ui dd input{ vertical-align:middle; margin:0px 0px 0px 10px;}
        div.clear{height:0px; width:100%; clear:both; overflow:hidden;}
        div.btn_list{padding: 5px 0px; border: 1px solid rgb(194, 222, 246); width: 784px; height: 30px; line-height: 30px; margin:10px auto; background-color: rgb(229, 241, 255);}
    </style>
</head>
<script type="text/javascript">
    //显示修改
    function SaveList() {
        var str = "|";
        $("select[typesid]").each(function () {
            var id = $(this).attr("typesid");
            var repeattype = $(this).val();
            var no = $("input[ntypesid='" + id + "']").attr("value");
            str += id + "," + repeattype + "," + no + "|";
        });

        $.ajax({
            type: "Post",
            url: "RecipesRuleManageInfo.aspx/SaveList",
            data: "{'str':'" + str + "'}",
            contentType: "application/json; charset=utf-8",
            dataType: "json",
            success: function (data) {
                str = "|";
                alert("保存成功！");
            }
        });
    }
</script>
<body>
    <form id="form1" runat="server">
        <div style="height:36px; line-height:36px; font-size:13px;">&nbsp;当前位置：周食谱重复率标准设置</div>
        <div class="btn_list" style="margin-top:0px;">
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td align="right" height="30">
                        <input type="button" class="input_btn_a" value="保存" onclick="SaveList()" />
                    </td>
                    <td width="10"></td>
                </tr>
            </table>
        </div>
        <div class="tp_list">
        <%--<div class="tp_ui">
            <span class="tp_t"> 小菜：</span>
            <dl class="dps_ui">
                <dd><span>拌菜：</span><select typesid="1"><option value="1|1">每餐可重复</option><option value="1|2">每天可重复</option></select><input type="text" name="DefaultNo" value="0" style="width:20px;" /></dd>
                <dd><span>拌菜：</span><select typesid="1"><option value="1|1">每餐可重复</option><option value="1|2">每天可重复</option></select><input type="text" name="DefaultNo" value="0" style="width:20px;" /></dd>
                <dd><span>拌菜：</span><select typesid="1"><option value="1|1">每餐可重复</option><option value="1|2">每天可重复</option></select><input type="text" name="DefaultNo" value="0" style="width:20px;" /></dd>
            </dl>
            <div style="height:0px; width:100%; clear:both; overflow:hidden;"></div>
        </div>
        <div class="tp_ui">
            <span class="tp_t"> 小菜：</span>
            <dl class="dps_ui">
                <dd><span>拌菜：</span><select typesid="1"><option value="1|1">每餐可重复</option><option value="1|2">每天可重复</option></select><input type="text" name="DefaultNo" value="0" style="width:20px;" /></dd>
                <dd><span>拌菜：</span><select typesid="1"><option value="1|1">每餐可重复</option><option value="1|2">每天可重复</option></select><input type="text" name="DefaultNo" value="0" style="width:20px;" /></dd>
                <dd><span>拌菜：</span><select typesid="1"><option value="1|1">每餐可重复</option><option value="1|2">每天可重复</option></select><input type="text" name="DefaultNo" value="0" style="width:20px;" /></dd>
                <dd><span>拌菜：</span><select typesid="1"><option value="1|1">每餐可重复</option><option value="1|2">每天可重复</option></select><input type="text" name="DefaultNo" value="0" style="width:20px;" /></dd>
                <dd><span>拌菜：</span><select typesid="1"><option value="1|1">每餐可重复</option><option value="1|2">每天可重复</option></select><input type="text" name="DefaultNo" value="0" style="width:20px;" /></dd>
                <dd><span>拌菜：</span><select typesid="1"><option value="1|1">每餐可重复</option><option value="1|2">每天可重复</option></select><input type="text" name="DefaultNo" value="0" style="width:20px;" /></dd>
            </dl>
            <div class='clear'></div>
        </div>--%>
        <%=m_DishTypesList%>
        </div>
    </form>
</body>
</html>
